<!doctype html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title><?= (isset($site_name) ? Html::chars($site_name) : '') ?> | <?= (isset($page_title) ? Html::chars($page_title) : '') ?></title>
        <meta name="keywords" content="<?= (isset($keywords) ? $keywords : '') ?>" />
        <meta name="description" content="<?= (isset($description) ? $description : '') ?>" />
        <meta name="robots" content="index, follow" />

        <link rel="icon" href="/favicon.png" type="image/png"/>

        <?php foreach ($styles as $file_style) : ?>
            <?= html::style($file_style) ?>
        <?php endforeach; ?>   

        <?php foreach ($scripts as $file_script) : ?>
            <?= html::script($file_script) ?>
        <?php endforeach; ?>   
    </head>
    <body>
        <div id="site">
            <div id="header">
                <h2><?=$page_name?></h2>
                <div class="header_menu"><?=$header_menu?></div>
            </div>
           
            <?php if (isset($block_center)) : ?>
                <div id="content" <?php if(!isset($block_right)) {echo 'style="width: 758px;"';} ?>>                    
                    <?php foreach ($block_center as $bc) : ?>
                        <?= $bc; ?>                    
                    <?php endforeach; ?> 
                </div>
            <?php endif; ?>
            <div id="footer"></div>
        </div>
    </body>
</html>